package org.jeecg.modules.assets.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.assets.dto.AssetsApplyDTO;
import org.jeecg.modules.assets.dto.AssetsItemDTO;
import org.jeecg.modules.assets.dto.CompanyDTO;
import org.jeecg.modules.assets.entity.AssetsItem;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.assets.vo.ItemVO;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * @Description: 资产明细
 * @Author: jeecg-boot
 * @Date:   2023-12-12
 * @Version: V1.0
 */
public interface IAssetsItemService extends IService<AssetsItem> {

    void editItem(AssetsItem assetsItem);

    IPage<AssetsItemDTO> queryPageListBydept(Page<AssetsItemDTO> page, Integer dept,String company,String assetsName);

    List<String> getAllCompanyCode();


    List<CompanyDTO> getCompanyByUser(String realname);

    void saveItem(AssetsItem assetsItem);

    void deletItem(String id);

    String importExcel(HttpServletRequest request, HttpServletResponse response);

    void bingCatagery(AssetsItem assetsItem);

    void bingGroup(AssetsItem assetsItem);

    AssetsItem queryById(String id);

    AssetsItem queryByCode(String code);

    IPage<AssetsApplyDTO> queryPageListByApply(Page page, AssetsApplyDTO assetsItem);


    ModelAndView exportXlsApply(AssetsApplyDTO assetsItem, Class<AssetsApplyDTO> assetsApplyDTOClass, String title);

    void editBatchStatus(AssetsItem assetsItem);

    void editBatchRemark(AssetsItem assetsItem);
}
